package day03;

public class OperDemo {
    public static void main(String[] args) {
        System.out.println(5%2);
        System.out.println(2%5);
        System.out.println(8%2);
        System.out.println("----------------------------------");
        int a1=5,b1=5;
        a1++;
        ++b1;
        System.out.println(a1);
        System.out.println(b1);
        System.out.println("---------------------------------");
        int a=5,b=5;
        int c=a++;
        int d=++b;
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
        System.out.println("--------------------------------");
        int e=5,f=5;
        e--;
        --f;
        System.out.println(e);
        System.out.println(f);
        System.out.println("--------------------------------");
        int g=5,h=5;
        int i=g--;
        int j=--h;
        System.out.println(g);
        System.out.println(h);
        System.out.println(i);
        System.out.println(j);


    }
}
